package br.com.dp.dao.entidade;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the foto_quarto database table.
 * 
 */
@Entity
@Table(name="foto_quarto")
@NamedQuery(name="FotoQuarto.findAll", query="SELECT f FROM FotoQuarto f")
public class FotoQuarto implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(unique=true, nullable=false)
	private int id;

	@Lob
	@Column(nullable=false)
	private byte[] foto;

	//bi-directional many-to-one association to Quarto
	@ManyToOne
	@JoinColumn(name="idQuarto", nullable=false)
	private Quarto quarto;

	public FotoQuarto() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public byte[] getFoto() {
		return this.foto;
	}

	public void setFoto(byte[] foto) {
		this.foto = foto;
	}

	public Quarto getQuarto() {
		return this.quarto;
	}

	public void setQuarto(Quarto quarto) {
		this.quarto = quarto;
	}

}